<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>用药错误事件上报表</title>
    <link rel="stylesheet" href="../layui/css/layui.css">
    <script src="../layui/layui.js"></script>
    <style>
        td{
            padding-left: 10px;
            padding-bottom: 5px;
            padding-right: 20px;
            padding-top: 10px;
        }
    </style>
</head>
<body>
<form class="layui-form" lay-filter="FormLoad" >
    <table border="1px" width="100%" cellpadding="0">
        <tr >
            <td colspan="6" style="text-align: center; height: 50px"> <span style=" font-size: 20px">药品不良反应/事件报告</span> </td>
        </tr>
        <tr>
            <td colspan="3" style="height: 30px"> <div>
                <input type="radio" name="report_order" value="首次报告" title="首次报告">
                <input type="radio" name="report_order" value="跟踪报告" title="跟踪报告" >
            </div> </td>
            <td colspan="1" style="height: 30px">
                编码
            </td>
            <td colspan="2" style="height: 30px">
                <input type="text" name="code" placeholder="" class="layui-input">
            </td>
        </tr>
        <tr>
            <div class="layui-form-item">
                <td>
                    报告类型
                </td>
                <td colspan="2">
                    <input type="radio" name="report_type" value="新的" title="新的">
                    <input type="radio" name="report_type" value="严重" title="严重">
                    <input type="radio" name="report_type" value="一般" title="一般">
                </td>

                <td>
                    报告单位类型
                </td>

                <td colspan="2">
                    <input type="radio" name="reporter_unit_type" value="医疗机构" title="医疗机构">
                    <input type="radio" name="reporter_unit_type" value="经营企业" title="经营企业">
                    <input type="radio" name="reporter_unit_type" value="生产企业" title="生产企业">
                    <input type="radio" name="reporter_unit_type" value="其他" title="其他">
                </td>
            </div>
        </tr>
        <tr>
            <div class="layui-form-item">
                <td>
                    患者姓名
                </td>
                <td>
                    <input type="text" name="patient_name" placeholder="" class="layui-input">
                </td>

                <td>
                    性别
                </td>

                <td>
                    <input type="radio" name="patient_sex" value="男" title="男">
                    <input type="radio" name="patient_sex" value="女" title="女">
                </td>
                <td>
                    出生日期
                </td>

                <td>
                    <input type="text" name="patient_birthday" lay-verify="birth_date" id="birth_date" placeholder="" class="layui-input">
                </td>
            </div>
        </tr>
        <tr>
            <div class="layui-form-item">
                <td>
                    民族
                </td>
                <td>
                    <input type="text" name="patient_nation" placeholder="" class="layui-input">
                </td>

                <td>
                    体重
                </td>

                <td>
                    <input type="text" name="patient_weight" placeholder="" class="layui-input">
                </td>
                <td>
                    联系方式
                </td>

                <td>
                    <input  name="patient_phone" type="tel"  lay-verify="required|phone" class="layui-input">
                </td>
            </div>
        </tr>
        <tr>
            <div class="layui-form-item">
                <td>
                    原患疾病
                </td>
                <td>
                    <input type="text" name="original_illness" placeholder="" class="layui-input">
                </td>

                <td>
                    医院名称
                </td>

                <td>
                    <input type="text" name="hospital_name" placeholder="" class="layui-input">
                </td>
                <td>
                    既往药品不良反应事件/事件
                </td>

                <td>
                    <input type="text" name="original_med_bad_event" placeholder="" class="layui-input">
                </td>
            </div>
        </tr>
        <tr>
            <div class="layui-form-item">
                <td>
                    病历号/门诊号
                </td>
                <td>
                    <div class="layui-input-inline" >
                        <input type="text" name="patient_num" placeholder="" class="layui-input">
                    </div>
                    <div class="layui-input-inline">
                        <button class="layui-btn layui-btn layui-btn-sm layui-btn-normal"  id="xuanran"  >+</button>
                    </div>
                </td>

                <td>
                    家族药品不良反应/事件
                </td>

                <td>
                    <input type="text" name="family_med__bad_event" placeholder="" class="layui-input">
                </td>
                <td colspan="2">
                </td>
            </div>
        </tr>
        <tr>
            <td colspan="1">
                相关重要信息
            </td>
            <td colspan="5">

                <input type="radio" name="related_important_mes" value="吸烟史" title="吸烟史">
                <input type="radio" name="related_important_mes" value="饮酒史" title="饮酒史">
                <input type="radio" name="related_important_mes" value="妊娠期" title="妊娠期">
                <input type="radio" name="related_important_mes" value="肝病史" title="肝病史">
                <input type="radio" name="related_important_mes" value="肾病史" title="肾病史">
                <input type="radio" name="related_important_mes" value="过敏史" title="过敏史">
                <input type="radio" name="related_important_mes" value="其他" title="其他">
            </td>

        </tr>
        <tr>
            <div class="layui-form-item">
                <td colspan="6" style="height: 50px">
                    药品
                </td>
            </div>
        </tr>
        <tr>
            <div class="layui-form-item">
                <td colspan="1">
                    怀疑药品
                </td>
                <td colspan="5">
                    <textarea name="doubt_med" style="height: 100px" required lay-verify="required" placeholder="请输入" class="layui-textarea"></textarea>
                </td>
            </div>
        </tr>
        <tr>
            <div class="layui-form-item">
                <td colspan="1">
                    并用药品
                </td>
                <td colspan="5">
                    <textarea name="unit_med" style="height: 100px" required lay-verify="required" placeholder="请输入" class="layui-textarea"></textarea>
                </td>
            </div>
        </tr>
        <tr>
            <div class="layui-form-item">
                <td colspan="1">
                    不良反应/事件名称
                </td>
                <td colspan="2">
                    <input type="text" name="bad_event_name" placeholder="" class="layui-input">
                </td>
                <td colspan="1">
                    不良反应/事件发生时间
                </td>
                <td colspan="2">
                    <input type="text" name="bad_event_happen_time" id="bad_time" placeholder="" class="layui-input">
                </td>
            </div>
        </tr>
        <tr style="font-size: 20px">
            <div class="layui-form-item">
                <td colspan="6">
                    不良反应/事件过程描述(包括症状，体征，临床检验)及处理情况（可附页）
                </td>
            </div>
        </tr>
        <tr>
            <div class="layui-form-item">
                <td colspan="6">
                    <textarea name="bad_event_process" style="height: 100px" required lay-verify="required" placeholder="请输入" class="layui-textarea"></textarea>
                </td>
            </div>
        </tr>
        <tr>
            <div class="layui-form-item">
                <td colspan="1">
                    不良反应事件的结果
                </td>
                <td colspan="5">
                    <input type="radio" name="bad_event_result" value="治愈" title="治愈">
                    <input type="radio" name="bad_event_result" value="好转" title="好转">
                    <input type="radio" name="bad_event_result" value="未好转" title="未好转">
                    <input type="radio" name="bad_event_result" value="不详" title="不详">
                    <input type="radio" name="bad_event_result" value="有后遗症" title="有后遗症">
                    <input type="radio" name="bad_event_result" value="死亡" title="死亡">
                </td>
            </div>
        </tr>
        <tr>
            <div class="layui-form-item">
                <td colspan="1">
                    若有后遗症表现：
                </td>
                <td colspan="1">
                    <input type="text" name="sequel_expression"  placeholder="" class="layui-input">
                </td>
                <td colspan="1">
                    若死亡直接死因：
                </td>
                <td colspan="1">
                    <input type="text" name="death_direct_reason"  placeholder="" class="layui-input">
                </td>
                <td colspan="1">
                    死亡时间：
                </td>
                <td colspan="1">
                    <input type="text" name="death_time" id="death_time" placeholder="" class="layui-input">
                </td>
            </div>

        <tr>
            <div class="layui-form-item">
                <td colspan="2">
                    停药或减药后，反应/事件是否消失或减轻：
                </td>
                <td colspan="4">
                    <input type="radio" name="bad_event_change" value="是" title="是">
                    <input type="radio" name="bad_event_change" value="否" title="否">
                    <input type="radio" name="bad_event_change" value="不明" title="不明">
                    <input type="radio" name="bad_event_change" value="未减药或未停药" title="未减药或未停药">
                </td>
            </div>
        </tr>
        <tr>
            <td colspan="2">
                再次使用可疑药品后是否再次出现同样反应/事件
            </td>
            <td colspan="4">
                <input type="radio" name="bad_event_alike_happen" value="是" title="是">
                <input type="radio" name="bad_event_alike_happen" value="否" title="否">
                <input type="radio" name="bad_event_alike_happen" value="不明" title="不明">
                <input type="radio" name="bad_event_alike_happen" value="未在使用" title="未在使用">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                对原患疾病的影响
            </td>
            <td colspan="4">
                <input type="radio" name="original_illness_influence" value="不明显" title="不明显">
                <input type="radio" name="original_illness_influence" value="病程延长" title="病程延长">
                <input type="radio" name="original_illness_influence" value="病情加重" title="病情加重">
                <input type="radio" name="original_illness_influence" value="导致后遗症" title="导致后遗症">
                <input type="radio" name="original_illness_influence" value="导致死亡" title="导致死亡">
            </td>
        <tr>
            <td rowspan="2">
                关联性评价
            </td>
            <td colspan="1">
                报告人评价
            </td>
            <td colspan="2">
                <input type="radio" name="reporter_appraise" value="可能" title="可能">
                <input type="radio" name="reporter_appraise" value="可能无关" title="可能无关">
                <input type="radio" name="reporter_appraise" value="待评价" title="待评价">
                <input type="radio" name="reporter_appraise" value="无法评价" title="无法评价">
            </td>
            <td colspan="1">
                签名
            </td>
            <td colspan="1">
                <input type="text" name="reporter_appraise_sign"  placeholder="" class="layui-input">
            </td>
        </tr>
        <tr>
            <td colspan="1">
                报告人单位评价
            </td>
            <td colspan="2">

                <input type="radio" name="reporter_unit_appraise" value="肯定" title="肯定">
                <input type="radio" name="reporter_unit_appraise" value="很可能" title="很可能">
                <input type="radio" name="reporter_unit_appraise" value="可能" title="可能">
                <input type="radio" name="reporter_unit_appraise" value="可能无关" title="可能无关">
                <input type="radio" name="reporter_unit_appraise" value="待评价" title="待评价">
                <input type="radio" name="reporter_unit_appraise" value="无法评价" title="无法评价">
            </td>
            <td colspan="1">
                签名
            </td>
            <td colspan="1">
                <input type="text" name="reporter_unit_appraise_sign"  placeholder="" class="layui-input">
            </td>
        </tr>
        <tr>
            <td rowspan="2">
                报告人信息
            </td>
            <td colspan="1">
                联系电话
            </td>
            <td colspan="1">
                <input type="text" name="reporter_phone"  lay-verify="required|phone" placeholder="" class="layui-input">
            </td>
            <td colspan="1">
                职业
            </td>
            <td colspan="2">
                <input type="radio" name="reporter_profession" value="医生" title="医生">
                <input type="radio" name="reporter_profession" value="药师" title="药师">
                <input type="radio" name="reporter_profession" value="护士" title="护士">
                <input type="radio" name="reporter_profession" value="其他" title="其他">
            </td>
        </tr>
        <tr>
            <td colspan="1">
                电子邮箱
            </td>
            <td colspan="1">
                <input type="text" name="reporter_email"  placeholder="" lay-verify="required|email" class="layui-input">
            </td>
            <td colspan="1">
                签名
            </td>
            <td colspan="2">
                <input type="text" name="reporter_sign"  placeholder="" class="layui-input">
            </td>
        </tr>

        <tr>
            <td rowspan="2">
                报告单位信息
            </td>
            <td colspan="1">
                单位名称
            </td>
            <td colspan="1">
                <input type="text" name="reporter_unit_name"  placeholder="" class="layui-input">
            </td>
            <td colspan="1">
                联系人
            </td>
            <td colspan="2">
                <input type="text" name="reporter_unit_contact"  placeholder="" class="layui-input">
            </td>
        </tr>
        <tr>
            <td colspan="1">
                电话
            </td>
            <td colspan="1">
                <input type="text" name="reporter_unit_contact_phone"  placeholder="" class="layui-input">
            </td>
            <td colspan="1">
                报告日期
            </td>
            <td colspan="2">
                <input type="text" name="report_date" id="report_date" placeholder="" class="layui-input">
            </td>
        </tr>
        <tr>
            <td colspan="1">
                生产企业请填写信息来源
            </td>
            <td colspan="5">
                <input type="radio" name="mes_source" value="医疗机构" title="医疗机构">
                <input type="radio" name="mes_source" value="经营企业" title="经营企业">
                <input type="radio" name="mes_source" value="个人" title="个人">
                <input type="radio" name="mes_source" value="文献报道" title="文献报道">
                <input type="radio" name="mes_source" value="上市后研究" title="上市后研究">
                <input type="radio" name="mes_source" value="其他" title="其他">
            </td>
        </tr>
        <tr>
            <td colspan="1">
                备注
            </td>
            <td colspan="5">
                <input type="text" name="remarks"  placeholder="" class="layui-input">
            </td>
        </tr>


    </table>
    <div class="layui-form-item">
        <div class="layui-input-block" style="text-align: center; margin-top: 50px">
            <button class="layui-btn" lay-submit lay-filter="YongYaocw">立即提交</button>
            <button class="layui-btn layui-btn-primary" lay-submit lay-filter="save">保存</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
</body>
<script>
    //获取地址参数的方法
    function getQueryVariable(variable)
    {
        let query = window.location.search.substring(1);
        let vars = query.split("&");
        for (let i=0;i<vars.length;i++) {
            let pair = vars[i].split("=");
            if(pair[0] == variable){return pair[1];}
        }
        return(false);
    }

    layui.use(['laydate','jquery','form','layer','table'], function() {
        let $ = layui.jquery;
        let form =layui.form;
        let laydate = layui.laydate;
        var layer=layui.layer;
        var router = layui.router();
        laydate.render({
            elem: '#bad_time' //指定元素
            ,type: 'date'
        });
        laydate.render({
            elem: '#birth_date' //指定元素
            ,type: 'date'
        });
        laydate.render({
            elem: '#report_date' //指定元素
            ,type: 'date'
        });
        laydate.render({
            elem: '#death_time' //指定元素
            ,type: 'date'
        });

        form.render();

        // 获取地址的中的值
        let user_code=decodeURIComponent(getQueryVariable("user_code"));
        let user_name=decodeURIComponent(getQueryVariable("user_name"));
        let dept_code=decodeURIComponent(getQueryVariable("dept_code"));
        let dept_name=decodeURIComponent(getQueryVariable("dept_name"));
        // layui data 保存数据
        if( user_code=="undefined"){
            console.log(layui.data('user').userinfo.user_name)
        } else{
            console.log(user_code);
            console.log("地址有值")
            layui.data('user', {
                key: 'userinfo',
                value:
                    {
                        user_name: user_name,
                        user_code: user_code,
                        dept_code:dept_code,
                        dept_name:dept_name
                    }
            });
            console.log(layui.data('user').userinfo.user_name)
        }
        var month=parseInt(1)+parseInt(new Date().getMonth())
        //渲染 上报人和上报人单位
        form.val("FormLoad",{
            "reporter": layui.data('user').userinfo.user_name.replace(/\"/g, "") ,
            "reporter_department":layui.data('user').userinfo.dept_name.replace(/\"/g, ""),
            "report_date": new Date().getFullYear()+"-"+month+"-"+ new Date().getDate()
        })


        // console.log(layui.data('user').userinfo.dept_name);


        //渲染按钮监听事件
        $("#xuanran").click(function() {
            let data_init = form.val("FormLoad");
            $.ajax({
                url:'/event/event_patient?'+'in_his_no='+data_init.patient_num,
                type:"post",
                success:function (data){
                    let json = JSON.parse(data);

                    form.val("FormLoad",{
                        "patient_name": json.data[0].name,
                        "patient_sex": json.data[0].gender,
                        "patient_age": json.data[0].age,
                        "patient_nation":json.data[0].nationality,
                        "patient_num":data_init.patient_num,
                        // "patient_bed_num":null,
                        "patient_weight": json.data[0].weight,
                        "patient_phone":json.data[0].contactinfo,
                    })
                    form.render();
                }
            })
        })

        // submit 提交事件监听
        form.on('submit(YongYaocw)', function(data) {

            layer.confirm('确定提交吗？', {
                btn: ['确认', '取消'] //按钮
            }, function () {

                $.ajax({
                    url: '/event/event_insert',
                    type: "POST",
                    data:{
                        "reporter_code":layui.data('user').userinfo.user_code,
                        "reporter_name":layui.data('user').userinfo.user_name,
                        "dept_code":layui.data('user').userinfo.dept_code,
                        "dept_name":layui.data('user').userinfo.dept_name,
                        "event_code":3,
                        "reporter_department":layui.data('user').userinfo.dept_name,
                        "report_order":data.field.report_order,
                        "code":data.field.code,
                        "report_type":data.field.report_type,
                        "reporter_unit_type":data.field.reporter_unit_type,
                        "patient_name":data.field.patient_name,
                        "patient_sex":data.field.patient_sex,
                        "patient_birthday":data.field.patient_birthday,
                        "patient_nation":data.field.patient_nation,
                        "patient_weight":data.field.patient_weight,
                        "patient_phone":data.field.patient_phone,
                        "original_illness":data.field.original_illness,
                        "hospital_name":data.field.hospital_name,
                        "original_med_bad_event":data.field.original_med_bad_event,
                        "patient_num":data.field.patient_num,
                        "family_med__bad_event":data.field.family_med__bad_event,
                        "doubt_med":data.field.doubt_med,
                        "unit_med":data.field.unit_med,
                        "bad_event_name":data.field.bad_event_name,
                        "bad_event_happen_time":data.field.bad_event_happen_time,
                        "bad_event_process":data.field.bad_event_process,
                        "related_important_mes":data.field.related_important_mes,
                        "bad_event_result":data.field.bad_event_result,
                        "sequel_expression":data.field.sequel_expression,
                        "death_direct_reason":data.field.death_direct_reason,
                        "death_time":data.field.death_time,
                        "bad_event_change":data.field.bad_event_change,
                        "bad_event_alike_happen":data.field.bad_event_alike_happen,
                        "original_illness_influence":data.field.original_illness_influence,
                        "reporter_appraise":data.field.reporter_appraise,
                        "reporter_appraise_sign":data.field.reporter_appraise_sign,
                        "reporter_unit_appraise":data.field.reporter_unit_appraise,
                        "reporter_unit_appraise_sign":data.field.reporter_unit_appraise_sign,
                        "reporter_phone":data.field.reporter_phone,
                        "reporter_profession":data.field.reporter_profession,
                        "reporter_email":data.field.reporter_email,
                        "reporter_sign":data.field.reporter_sign,
                        "reporter_unit_name":data.field.reporter_unit_name,
                        "reporter_unit_contact":data.field.reporter_unit_contact,
                        "reporter_unit_contact_phone":data.field.reporter_unit_contact_phone,
                        "report_date":data.field.report_date,
                        "mes_source":data.field.mes_source,
                        "remarks":data.field.remarks,
                        "status":2 //递交
                    },
                    success:function () {

                        layer.msg("递交成功");
                        form.val("FormLoad",{
                            "report_order":null,
                            "code":null,
                            "report_type":null,
                            "reporter_unit_type":null,
                            "patient_name":null,
                            "patient_sex":null,
                            "patient_birthday":null,
                            "patient_nation":null,
                            "patient_weight":null,
                            "patient_phone":null,
                            "original_illness":null,
                            "hospital_name":null,
                            "original_med_bad_event":null,
                            "patient_num":null,
                            "family_med__bad_event":null,
                            "doubt_med":null,
                            "unit_med":null,
                            "bad_event_name":null,
                            "bad_event_happen_time":null,
                            "bad_event_process":null,
                            "related_important_mes":null,
                            "bad_event_result":null,
                            "sequel_expression":null,
                            "death_direct_reason":null,
                            "death_time":null,
                            "bad_event_change":null,
                            "bad_event_alike_happen":null,
                            "original_illness_influence":null,
                            "reporter_appraise":null,
                            "reporter_appraise_sign":null,
                            "reporter_unit_appraise":null,
                            "reporter_unit_appraise_sign":null,
                            "reporter_phone":null,
                            "reporter_profession":null,
                            "reporter_email":null,
                            "reporter_sign":null,
                            "reporter_unit_name":null,
                            "reporter_unit_contact":null,
                            "reporter_unit_contact_phone":null,
                            "report_date":null,
                            "mes_source":null,
                            "remarks":null,
                        })
                        form.render();
                    },
                })

            }, function () {
            });
            console.log(data.field) //当前容器的全部表单字段，名值对形式：{name: value}
            return false; //阻止表单跳转。如果需要表单跳转，去掉这段即可。
        });

        //save 保存事件监听
        form.on('submit(save)', function(data) {
            $.ajax({
                url: '/event/event_insert',
                type: "POST",
                data:{
                    "reporter_code":layui.data('user').userinfo.user_code,
                    "reporter_name":layui.data('user').userinfo.user_name,
                    "dept_code":layui.data('user').userinfo.dept_code,
                    "dept_name":layui.data('user').userinfo.dept_name,
                    "event_code":3,
                    "report_dept":layui.data('user').userinfo.dept_name,
                    "report_order":data.field.report_order,
                    "code":data.field.code,
                    "report_type":data.field.report_type,
                    "reporter_unit_type":data.field.reporter_unit_type,
                    "patient_name":data.field.patient_name,
                    "patient_sex":data.field.patient_sex,
                    "patient_birthday":data.field.patient_birthday,
                    "patient_nation":data.field.patient_nation,
                    "patient_weight":data.field.patient_weight,
                    "patient_phone":data.field.patient_phone,
                    "original_illness":data.field.original_illness,
                    "hospital_name":data.field.hospital_name,
                    "original_med_bad_event":data.field.original_med_bad_event,
                    "patient_num":data.field.patient_num,
                    "family_med__bad_event":data.field.family_med__bad_event,
                    "doubt_med":data.field.doubt_med,
                    "unit_med":data.field.unit_med,
                    "bad_event_name":data.field.bad_event_name,
                    "bad_event_happen_time":data.field.bad_event_happen_time,
                    "bad_event_process":data.field.bad_event_process,
                    "related_important_mes":data.field.related_important_mes,
                    "bad_event_result":data.field.bad_event_result,
                    "sequel_expression":data.field.sequel_expression,
                    "death_direct_reason":data.field.death_direct_reason,
                    "death_time":data.field.death_time,
                    "bad_event_change":data.field.bad_event_change,
                    "bad_event_alike_happen":data.field.bad_event_alike_happen,
                    "original_illness_influence":data.field.original_illness_influence,
                    "reporter_appraise":data.field.reporter_appraise,
                    "reporter_appraise_sign":data.field.reporter_appraise_sign,
                    "reporter_unit_appraise":data.field.reporter_unit_appraise,
                    "reporter_unit_appraise_sign":data.field.reporter_unit_appraise_sign,
                    "reporter_phone":data.field.reporter_phone,
                    "reporter_profession":data.field.reporter_profession,
                    "reporter_email":data.field.reporter_email,
                    "reporter_sign":data.field.reporter_sign,
                    "reporter_unit_name":data.field.reporter_unit_name,
                    "reporter_unit_contact":data.field.reporter_unit_contact,
                    "reporter_unit_contact_phone":data.field.reporter_unit_contact_phone,
                    "report_date":data.field.report_date,
                    "mes_source":data.field.mes_source,
                    "remarks":data.field.remarks,
                    "status":1 //暂存
                },
                success:function () {

                    layer.msg("保存成功");
                    form.val("FormLoad",{
                        "report_order":null,
                        "code":null,
                        "report_type":null,
                        "reporter_unit_type":null,
                        "patient_name":null,
                        "patient_sex":null,
                        "patient_birthday":null,
                        "patient_nation":null,
                        "patient_weight":null,
                        "patient_phone":null,
                        "original_illness":null,
                        "hospital_name":null,
                        "original_med_bad_event":null,
                        "patient_num":null,
                        "family_med__bad_event":null,
                        "doubt_med":null,
                        "unit_med":null,
                        "bad_event_name":null,
                        "bad_event_happen_time":null,
                        "bad_event_process":null,
                        "related_important_mes":null,
                        "bad_event_result":null,
                        "sequel_expression":null,
                        "death_direct_reason":null,
                        "death_time":null,
                        "bad_event_change":null,
                        "bad_event_alike_happen":null,
                        "original_illness_influence":null,
                        "reporter_appraise":null,
                        "reporter_appraise_sign":null,
                        "reporter_unit_appraise":null,
                        "reporter_unit_appraise_sign":null,
                        "reporter_phone":null,
                        "reporter_profession":null,
                        "reporter_email":null,
                        "reporter_sign":null,
                        "reporter_unit_name":null,
                        "reporter_unit_contact":null,
                        "reporter_unit_contact_phone":null,
                        "report_date":null,
                        "mes_source":null,
                        "remarks":null,
                    })
                    form.render();
                },
            });
            console.log(data.field) //当前容器的全部表单字段，名值对形式：{name: value}
            return false; //阻止表单跳转。如果需要表单跳转，去掉这段即可。
        });
    })
</script>

</html>